﻿<%@ Page Language="C#" MasterPageFile="~/Design/MasterPage/MasterPage.master" AutoEventWireup="true" CodeFile="DutySchemaUpdForm.aspx.cs" Inherits="App_Input_DutySchemaUpdForm" Title="工作计划分配" %>

<%@ Register Assembly="ShpmCommon" Namespace="Shpm.System.Web.Control" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<script language="javascript" type="text/javascript">
        function openPersonSrh(){
            var url  = "../Commons/EmployeeSearchForm.aspx";
	        var prm  = "?CONTROL_ID=" + "<%= txtAuditing.ClientID %>";
	        prm += "&CONTROL_NAME=" + "<%= txtAuditingPerName.ClientID %>";
	        url += prm;	        
	        var win = window.open(url,'MaterialApproveForm','scrollbars,resizable,height=460,width=500');
	        win.focus();	        	        
        }
            
    </script>
    <cc1:ComValidator ID="ComValidator1" runat="server" CheckItems-Capacity="32" ForeColor="Red" Visible="false">
            <cc1:CheckRequiredAttribute Code="E0082" ControlToValidator="txtAuditing">
                <cc1:ComAbsParamsAttribute Parameter="员工编号" />
            </cc1:CheckRequiredAttribute>
            <cc1:CheckRequiredAttribute Code="E0082" ControlToValidator="PerformDate">
                <cc1:ComAbsParamsAttribute Parameter="开始执行" />
            </cc1:CheckRequiredAttribute>
            <cc1:CheckDateAttribute Code="E0034" ControlToValidator="PerformDate" DataFormat="yyyy/mm/dd">
                <cc1:ComAbsParamsAttribute Parameter="开始执行" />
            </cc1:CheckDateAttribute>
        </cc1:ComValidator>
    <table class="table_border_line">
        <tr>
            <td align="left">
                <script language="javascript">
                    (new TitleBar('SchemaBar', '工作模板分配')).showBar();
                </script>
            </td>
        </tr>
    </table>
    <table class="table_border_line" style="background: ffffff">
        <tr>
            <td style="width: 16px" class="">
                &nbsp;
            </td>
            <td class="" style="width: 128px; height: 26px">
                员工编号
            </td>
            <td class="" runat="server">
                <asp:TextBox ID="txtAuditing" runat="server" MaxLength="4" Width="67px"></asp:TextBox><span
                    style="color: #ff7300">*</span><asp:TextBox
                    ID="txtAuditingPerName" runat="server" Width="71px"></asp:TextBox><a href="#" onclick="javascript:openPersonSrh();">
                                <img id="searchImg" runat="server" src="../../images/search.jpg" border="0" />
                            </a></td>
        </tr>
        <tr>
            <td style="width: 16px" class="">
                &nbsp;
            </td>
            <td class="" style="width: 128px; height: 26px">
                工作模板
            </td>
            <td id="Td3" class="" runat="server">
                <asp:DropDownList ID="ddlTemplate" runat="server" Width="120" DataTextField="TemplateName" DataValueField="TemplateId" AutoPostBack="True" OnSelectedIndexChanged="ddlTemplate_SelectedIndexChanged" />
            </td>
        </tr>
        <tr>
            <td style="width: 16px" class="">
                &nbsp;
            </td>
            <td class="" style="width: 128px; height: 26px">
                排班类型
            </td>
            <td id="Td2" class="" runat="server">
                <asp:DropDownList ID="ddlDutyType" runat="server" DataTextField="Content" DataValueField="DictNo"
                    Width="120">
                </asp:DropDownList></td>
        </tr>
        <tr>
            <td style="width: 16px" class="">
                &nbsp;
            </td>
            <td class="" style="width: 128px; height: 26px">
                开始执行
            </td>
            <td id="Td1" class="" runat="server">
                <asp:TextBox ID="PerformDate" runat="server" CssClass="input-box" MaxLength="10"
                    onfocus="new Calendar().show(this);" Width="81px"></asp:TextBox><span style="color: #ff7300">*</span></td>
        </tr>
    </table>
    <p>&nbsp;</p>
    <table class="table_border_line">
        <tr>
            <td align="left">
                <script language="javascript">
                    (new TitleBar('TemplateBar', '工作模板项目')).showBar();
                </script>
            </td>
        </tr>
    </table>
    <asp:Table ID="TblTemplate" runat="server" BorderWidth="1px" CssClass="GridView_table" BorderStyle="Solid">
        <asp:TableHeaderRow ID="TableHeaderRow1" runat="server">                                
            <asp:TableHeaderCell CssClass="GridView_head_grayblue" Width="180"><b>工作时间</b></asp:TableHeaderCell>
            <asp:TableHeaderCell CssClass="GridView_head_grayblue"><b>工作内容</b></asp:TableHeaderCell>
            <asp:TableHeaderCell CssClass="GridView_head_grayblue" Width="120"><b>工作分类</b></asp:TableHeaderCell>
        </asp:TableHeaderRow>
    </asp:Table>
    
    <p>&nbsp;</p>
    <p align="center">
    <asp:Button ID="btnOk" runat="server" Text="  确 认  " OnClick="btnOk_Click" />
    &nbsp;&nbsp;
    <asp:Button ID="btnBack" runat="server" Text="  返 回  " OnClick="btnBack_Click" />
    </p>
</asp:Content>